cmake_minimum_required(VERSION 3.16)
project(ExampleProgram)

set(CMAKE_CXX_STANDARD 11)

set(tcpclient ${CMAKE_CURRENT_LIST_DIR}/src/tcp-client.cpp)
set(tcpserver ${CMAKE_CURRENT_LIST_DIR}/src/tcp-server.cpp)

INCLUDE_DIRECTORIES(
    ./include
)

add_executable(tcp-client ${tcpclient})
add_executable(tcp-server ${tcpserver})
#add_executable(udp-client ${SOURCE})
#add_executable(udp-server ${SOURCE})

# Add -lpthread
target_link_libraries(tcp-client pthread)
target_link_libraries(tcp-server pthread)
#target_link_libraries(udp-client pthread)
#target_link_libraries(udp-server pthread)

# Add -I../async-sockets
#target_include_directories(tcp-client PUBLIC ./include)
#target_include_directories(tcp-server PUBLIC ./include)
#target_include_directories(udp-client PUBLIC ./include)
#target_include_directories(udp-server PUBLIC ./include)
